-- GENERATED SPELL FOR [Captain Tuubid] --


function spell0_15392(pUnit, Event) --@Attack Order,n/a--
pUnit:FullCastSpellOnTarget(25471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15392', 10288, 1)
end

function spell1_15392(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15392', 603, 1)
end

function spell2_15392(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(24317,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15392', 20341, 1)
end

function Sorts_15392(pUnit, Event)
local choix_sorts_15392 = math.random(0, 2)
if choix_sorts_15392 == 0 then
pUnit:RegisterEvent('spell0_15392', 1, 1)
end
if choix_sorts_15392 == 1 then
pUnit:RegisterEvent('spell1_15392', 1, 1)
end
if choix_sorts_15392 == 2 then
pUnit:RegisterEvent('spell2_15392', 1, 1)
end
end

function mob15392_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15392', math.random(1500, 3000), 1)
end

function mob15392_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15392_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15392_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15392, 1, 'mob15392_Action')
RegisterUnitEvent(15392, 2, 'mob15392_Leave')
RegisterUnitEvent(15392, 3, 'mob15392_Kill')
RegisterUnitEvent(15392, 4, 'mob15392_Die')
